package com.tt.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * 跳转页面
 * @author 青青
 */
@Controller
public class PageController
{

    private String prefix = "system";

    /**
     *
     * @return
     */
    @GetMapping(value = {"/","index"})
    public String showIndex()
    {
        return "index";
    }

    /**
     * 访问什么页面就找什么页面
     * @param page
     * @return
     */
    @RequestMapping("/tt/{page}")
    public String showPage(@PathVariable String page)
    {
        return page;
    }
}
